import React, { useEffect, useState } from "react";
import './WrjManagement.less'
import Subaccount from "../subaccount/WrjSubaccount";
import Standing from "../standing/WrjStanding";

const Management=()=>{
    const [msg,setmsg]=useState('子账号管理')

    return (
        <div style={{marginLeft:'15px',marginTop:'10px'}}>
            <p className="wrj-management-p">子账号管理</p>
            <div className="wrj-management-ps">
                <p className={msg=='子账号管理'?'management-pactive':'management-p'} onClick={()=>{setmsg('子账号管理')}}>子账号管理</p>
                <p className={msg=='身份管理'?'management-pactive':'management-p'} onClick={()=>{setmsg('身份管理')}}>身份管理</p>
            </div>
            {
                msg=='子账号管理'?
                <Subaccount></Subaccount>:
                <Standing></Standing>
            }
        </div>
    )
}

export default Management